package com.ms.module.wechat.clear.internal;

import com.ms.module.wechat.clear.IWeChatClearListener;
import com.ms.module.wechat.clear.WeChatClearListener;

import java.util.ArrayList;
import java.util.List;

public class WeChatClearCommonn {

    public static IWeChatClearListener weChatClearCallBack;

    public static IWeChatClearListener getWeChatClearCallBack() {
        if (weChatClearCallBack != null) {
            return weChatClearCallBack;
        }
        return new WeChatClearListener();
    }



    private static List<ICloseListener> closeListeners = new ArrayList<>();

    public static void add(ICloseListener listener) {
        closeListeners.add(listener);
    }

    public static List<ICloseListener> getCloseListeners() {
        return closeListeners;
    }
}
